#include <iostream>
#include <thread>
#include <cassert>

using namespace std;

void do_something(){
    cout << "do something" <<endl;

    return;
}

void test1(){
    thread my_thread(do_something);

    my_thread.detach();

    assert(my_thread.joinable());
    return;
}

int main()
{
    test1();

    return 0;
}

